package com.suemi.missile.common.message;

import java.io.Serializable;

/*
 * 心跳消息类
 */
public class HeartBeat extends BaseMessage implements Serializable {

  private HeartBeat(MessageType type) {
    super(type);
  }

  public static HeartBeat Ping() { return new HeartBeat(MessageType.PING); }

  public static HeartBeat Pong() {
    return new HeartBeat(MessageType.PONG);
  }
}
